#include "DictionaryFile.h"

using std::ifstream;

/********************************************************************************************/
DictionaryFile::DictionaryFile( string name ):File(name)
{
	
}
/********************************************************************************************/
DictionaryFile::~DictionaryFile()
{
	
}
/********************************************************************************************/
void DictionaryFile::addRegister( tRegDictionary& _register )
{
	fdFile.write( (char*)&_register, sizeof(_register) );
}
/********************************************************************************************/
void DictionaryFile::readRegister( tRegDictionary& _register  )
{
	fdFile.read( (char*)&_register, sizeof(_register) );

	if ( (fdFile.rdstate() & ifstream::eofbit ) != 0 )
		_eof = true;

}
